package mathalgorithm

func max(a int, b int) int {
	if a > b {
		return a
	}
	return b
}

func calcbiggestdivider(a int, b int) int {
	if a > b {
		c := a - b
		if c == b {
			return c
		} else {
			return calcbiggestdivider(c, b)
		}
	} else if b < a {
		c := b - a
		if c == a {
			return c
		} else {
			return calcbiggestdivider(c, a)
		}
	} else {
		return a
	}
}
